added editing and logging

added editing option in user profile.
server will now email admins with errors.
server now logs to file in tmp
added 404 and 500 html pages
added user nickname uniqueness
put some comments in