Workflows: added mini approval widget

* Removed every hardcoded url in .js files.
* Added small helper function in maintable.js.
* Added buttons for multiple record approval.
* Various fixes in datapreview.js functions.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>