fetch security settings from the registry instead of portal properties
add more tests for generating a user id and user name
apply a transform on the email when generating a user id

This fixes the issue when adding a new user with an uppercase email.
https://github.com/plone/Products.CMFPlone/issues/261
Merge branch 'master' into plip10359-z3cform

Conflicts:
	plone/app/users/browser/register.py
Use email_from_address from registry (Plone 5) in tests.
minor docstrings update in register.py

Property "validate_email" was replaced by the
"enable_user_pwd_choice" setting in the registry. #216
Merge pull request #27 from plone/plip10359-mail-controlpanel

Use email_from_address from registry (Plone 5) in tests.
Merge branch 'plip10359-z3cform' of https://github.com/jcerjak/plone.app.users into jcerjak-plip10359-z3cform

Conflicts:
	plone/app/users/tests/base.py
Merge pull request #28 from plone/jcerjak-plip10359-z3cform

Jcerjak plip10359 z3cform
some testing fine tuning
Merge remote-tracking branch 'origin/master' into plone-app-testing

Conflicts:
	CHANGES.rst
	plone/app/users/tests/base.py
	plone/app/users/tests/duplicate_email.rst
	plone/app/users/tests/email_login.rst
	plone/app/users/tests/test_loginname_generator.py
	plone/app/users/tests/test_new_user.py
	plone/app/users/tests/test_userid_generator.py
	plone/app/users/tests/userdata.rst
fixed tests after merge
factored out mailhost mocking to reuse in doctests
(re)merge duplicate_email doctest and make all tests pass