Add config
Add RPC abstraction, made logger a bit smarter