Fix layer draw. Should use new layers.* objects
Various fixes to animate. New vector, camera functions.
Introduce setState to change animation. Ensure we don't accidentally reset it.