Move initialization of http and jsonrpc servers