Merge pull request #4 from rcigni/master

domains and more goodies
Merge pull request #5 from rcigni/master

username is without domain
fixed R/S counter
fix accumulator
send email when a new user is registered