Extracted backbone structure code

Now models and collections and views are in structure.js and
controller.js is the main "loop"