Wipes old code, switches to a new routing system, adds an API translation layer for easier JSON marshalling.