Animations become messed up after rotating whole object. Is there an absolute (non-relative) posing mode or something?
Generally when you parent the mesh to the armature using Ctrl P the mesh object becomes child of the armature object (and vertex groups get relations with bones), so keyframing the whole armature in object mode should do what you're looking for.