Couple of fixes

There were (and probably still are) scenarios where configuration is not
correct and causes using undefined values.

Also changed the edit mode radio button handling to work as it used to
work back in the day with jQuery 1.4.
When adding widget save it with default config

If the widget is saved to database without any configuration it will
(likely) change on every page load which is confusing. Users will quite
likely configure them once added but even if they don't we should not
confuse them.
Loop over sorted keys

"for k of data" goes through the keys in some order. We get the data
sorted from the backend and it is easier for a human to find what he's
looking for when the values are in order, so iterate using sorted keys.
Moved token code to user to remove dependency

Going to start using Passport for authentication and going to need
user.coffee not to require authentication.coffee
Use passport.js for authentication

Going to get rid of self made authentication mechanisms. Now using
Passport.js but only 'dummy' authentication strategy is implemented.