add loader

Fixes some issues with preferences and adds a method to dynamically load
Javascript files
Merge branch 'master' of https://github.com/MarkTime/MarkTimeJS

Conflicts:
	www/js/api/api.preferences.js