Workflows: HP added mini approval widget and various fixes

* Removed every hardcoded url in .js files

* Added small helper function in maintable.js

* Added buttons for multiple record approval

* Needs a small fix to the reject-multi button

* Various fixes in datapreview.js functions
Merge pull request #3 from dinossimpson/holdingpen-new

Sent for merge