Registration Email

An email is now sent on registration. Also the beginning of the AI code.