Build workflow and dashboard pages

Ignore any /API/ changes just have a look at the JS stuff. particularly in:
/js/workflow/core.js
/js/dashboard/core.js
should be commented enough to understand it