added connection pool class
set mining_proxy to use connection pool
moved imports to top
implemented initial user mapper and set worker_registry authorize to use it