Switched to data-driven widget approach

Client fetches json from server defining which widgets to create, then
fetches templates for each, runs them though handlebars and initialises
scripts.

Only power and xbmc widgets are available. Widget list is currently just
a static json file.
Fixed line endings