Added verification email sending. Moved server methods to the server folder.