Refactored the app into seperate pieces. Made the state explict and
put it into it's own namespace. Same with the dom legislator
functions. Cleaned out some old code from the tutorial.