Adopted changes from legacy v0.3 branch. 

unit testing using boost.
refactoring in the core library (probably removed bugfixes from last year).
split up library into server, client and common.

Need to fix examples and stubgenerator