Refactoring of options saving.
Issue #1627518 by vlad.dancer | jducro: Fixed Call to undefined function _user_import_profile().
Issue #752522 by joachim: Fixed Incorrect use of hook_mail().
Issue #1267352 by ryan_courtnage: Fixed Not passing message['language'] to _user_mail_text().
Issue #1014618 by rhoerbe: Fixed profile.inc is not POSTGRES compatible.
Remove LIMIT in queries and replace with db_querry_range
Issue #1003282 by fmueller: Fixed Calls of the function _user_import_settings_select().