SW-1. Refresh state on interval and add fields.

Refreshes all data on page. We can optimize later if necessary.

openVisualizerApp.py -- Added getMoteState() for UI's use.
moteState.py ---------- Allow to export only data or meta dict. in toJSON().

Also:
* Use Bottle templates rather than Mako.
* Abbreviate BSD license at top of file.