Refactoring and bugfixes.

* Simple declarative mapper for ldap entities
* Models layer
* Functional tests
* Bug fixes
Update readme