Move target management code to targets.js
Add character encoding to HTML page.
Switch storage layer to PouchDB.

Will lose existing dashboards, unfortunately.