Index time

More file structure, added services.js and more state views.