Added .jshintrc for linting with jsHint.

The file has sensitive defaults and ignores TG and Ext as global variables. It will object to
all other global variables.

It prohibits mixing of spaces and tabs which a lot of files seem to have
Detect phonegap and browser and set the baseUrl accordingly.

We might want to move this logic to a separate JS file. But Phonegap is sensitive to
order of execution so not sure if that would break the funcitonality. Something to look
at in the future!
Had to modify the rootProperty of the store. It was not working otherwise.
Also fixed mixed spaces and tabs in Main.js.