First implementation of register device token rest end point. Refactored config and registrar objects to be singletons using package variables