Changes to work with new LDAP structure, also factor out username massaging into another function
Merge branch 'master' of github.com:npolar/api.npolar.no