Configures Spring Security with LDAP

Also:
* Adds classes to test the API as REST JSON