Fix exception on web UI load with new RESTful IDs, fix ApiHandler order