Added more functionality to state machine & updateDom

- Moved rendered state to _rendered
- Added hidden getter to state machine
Moved animation code into state machine
Use adding to DOM as a cue for changing states