Move registration function to service module
Add context manager to change directories
Add put method to service