Create MainApp correctly

Inital commit with new mainapp.
Reorganize to utilize main_app, fixed logout and timeout.

#48 - catch the timeout in backbone.sef.js.  Not quite right yet.
Close #68 - Clear main region on logout.

Sequencing issue was caused by the app.js starting the sub modules even
though they weren't fully logged in yet.  Control was improved by
moving the start of the sub-apps to main_app which is triggered after
login is successful.  This stops the load of an app while the logout is
firing.

Issue with reports because it's not using 'job' as part of it's route.
That is trumping the other routing and creating issues.
Catch timeouts from any model or collection

#48 close
Added globalInitialize constructor for error handling of session timout
event.  This will not be overriden if a initialize is added to any
particular model for other purposes.
Refactored context_app.  Still need to add a message bus to show why
the session was ended, that's only in the console right now.
Removed messages from backbone.sef.js.
Add devpath to backbone sync

#70 Adds developer path support to context_app and adds to default
query string sent to server.

This is used to direct the server to use code in a developers home
directory.

dao.authorize also modified to send devpath data with returned context.
Fix route in URL after refresh

#83
Moved the backbone.history.start to run after the login has succeeded.
That appears to have fixed things.  From the docs you are supposed to
have all the modules started and then run the history.start.  I think
we had them out of sequence after adding the login validation and
context creation.
Change logout to hard link

#76
Change logout from backbone route to hard link to logout.html.
logout.html kills the cookie (sets value to 'missing') and then
redirects to the base url which restarts the whole app from scratch.
Merge pull request #86 from synergy55inc/Development

Development
Merge pull request #87 from synergy55inc/Routing-Fixes

Routing fixes
Merge pull request #88 from synergy55inc/lisa

Make sure routing-fixes get into development, after deleting that branch accidently.