Move controller client to root. Add try catch when register function to jsonrpc server.
Create json_client - can redefine rpc function, else use the default rpc call. Add function get_params_media.