Record repository API requests, add /quit command for console

/quit should handle shutting down threads properly.