Added a basic client authentication scheme in cli
Moved client into Module, and added a simple auth-module