Client part with binary stuff is not fully implemented, but working. Removed logging in implemented methods
Moved source to lib/
Using deferred
Using promise everywhere