Refactor the api and its classes
Move commands, exceptions etc to lib directory, make greet, invite and join working
Refactor done