Added client authentication and online new client initialization.
Added configuration files.
Fixed bugs from last commit and restructured a bit.