Many web frameworks have these basic building blocks. I'm a PHP guy, so I'd recommend the standard options: Zend, CakePHP, CodeIgniter, etc. They will all do registration, login, profiles, etc., as well as get you security features and a platform for plugins developed by third parties.
Many of them have plugins for payment stuff as well.