User registration fix

When a user asks for a registration, eppn is shown in the table 'Awating
list for approval' in the Queue instead of his/hers name. This is a fix.
Merge pull request #124 from JanOppolzer/usrregfix

User registration fix
add check for keys to generate user cn
Fix checks for keys to generate cn

I guess that the second `if' was incorrect, because it didn't check
`fname' availability, it just used it. Now, if `fname' is available,
it's used and `sname' is added when available.
Merge pull request #125 from JanOppolzer/usrregfix2

Fix checks for keys to generate cn
fix nting
Merge branch 'develop' into 1.x-stable