admin-ui: Seperate javascript files

Now the files are:
* common.js
* tables.js
* details.js

These are imported in the corresponding html files.
admin-ui: Make functional the modals in details pages

Fix apyrgio/synnefo#87
admin-ui: Add ajax request to perform actions
Merge branch 'feature-admin-ui-new' into feature-admin