[#138] editCtrl inheriting viewCtrl
[#138] query directives
[#138] QueryViewCtrl cleanup and formatting
[#138] QueryEditCtrl cleanup
[#138] alert-unsaved-changes directive
[#138] move saveQuery to ViewCtrl
[#138] rebase fixes (cherry pick f3d4635)
typo: cancelInterval -> clearInterval
[#138] Query.newQuery
[#138] store original query text to detect changes
[#138] cherry pick rebase conflicts:
 366cdbf616 Remove reference to query result when changing data source
 872cee2228 Unless data source set already, set it to the first one.
 8ae41c0b6a Show query's data source.
getQueryResult only if query.data_source_id exists
fix getColumns failures when QueryResult has no data
[#138] simplify saveQuery