tidy up js files and add base for new admin theme
fix admin tests for new layout