Move admin to single-page application

Massive move; removes old code, implements new system, does minor changes in server.