Various improvements to uid management in ldapadmin

Validation of uid field:
* use regexp for Java validation
* use the same regexp for javascript validation in public "new account" page
* configure the regexp as a new parameter in config module
* new parameter in config module to specify the uid validation regexp

Auto generation of uid field:
* add a parameter to disable automatic uid generation in public "new account" page
* use this parameter to allow edition of uid field in privateui "new user" page
* accept uid as an input in POST /users/ API
* new parameter in config module to disable auto generation of uid field

<!---
@huboard:{"order":598.95068359375,"custom_state":""}
-->

I'm fine with keeping it this way for now, since we have a release by the end of the week, shall we consider merging the PR before the release ?

FYI I went a bit forward with the testsuite on ldapadmin, but this requires some changes on the ldapadmin code as well - fixing minor things, but I fear it won't be ready for the release unfortunately.