Dashboard parser

* Added dashboard parser that takes a JSON object and constructs a
dashboard and its widgets.
* Updated the widget JSON so it is more generic and fits the dashboard
JSON.