We need to replace the standard Joomla login and registration forms. We need to collect a great deal of data that the standard Joomla registration does not, and Community Builder's UI choices are unacceptable.
We need to be able to design our own registration form, and our own login form, and at login and at registration we need to perform a number of customer-specific actions, and we need to log in to or register with the standard Joomla user management system.
So, the question. Assuming I have displayed to the user a BreezingForms login or registration form, and the user has filled in the fields and clicked on the button, and now I'm running the PHP code that's supposed to do whatever is supposed to be done, what Joomla functions do I call to cause the user to be logged in? what Jooma functions do I call to register a new user?