Make shell code more robust
Fix localstorage and PreferenceManager
Abstract away Window API's
bugfix - Truncate the file after a write
bugfix - race condition

Sometimes the load event fired when the page was already executing and
the brackets object got attached too late.
merge shell
Merge pull request #15 from Janpot/chrome-app-test

working prefs using chrome app storage api, fixes for file truncation on write, brackets missing global