Added user apikeys, made ajax api available via apikeys, restified ajax api (WIP)