Update Registration.php

I have cleaned codes and refactored the class with an eye on PSR-0/1/2 code conventions
Merge pull request #174 from devplanete/patch-7

Update Registration.php - Code cleaned & refactored with PSR-0/1/2 code conventions