API updates and some frontend testing

The testing is incomplete, but the few API changes are essential for the admin site.