Fixed some warnings, refactored location model to use dojo/when, created app mediator to control main views, started up location widget from within app mediator.