fix admin js, add slave_mappings.py and add machines/classes endpoint