Separating out controllers

Will be working on getting state bindings working and moving data
manipulation into factories.