Refactor movement/input/animation scripts

Movement and animation works.  Facing/rotation doesn't because after
lots of messing about I can't get it to look right.  It seems to be
intrinsically linked with the camera somehow.
Jumping and camera movement not implemented yet.