There is a registration script posted, just do a little search for it and you will find it, the post is pretty well explained. Just a little help for you I'm posting the link in here:
As for the GM rank, just go into your database, under PS_UserData.dbo.Users_Master and update the status column to 16 of the user.