Added --warnings option to the test module
Replaced calls to app.single_user_mode, etc with app.user_mode

* app - Replaced user_mode and user_name with properties
* app - Removed single_user_mode and use_subdomains
* documents.profiles - Avoided a DeprecationWarning
* lib.flask - Use app.user_mode