Fixed issue with req_id. It has to be a string or the api wont responde. Added methods for registering handlers for every message, particular command or particular request