Fix #4, Fix #5, add user registration date to db, prevent email collisio...

Fix #4, fix #5, add user registration date to db, prevent email collision, add functions for checking username and email existence
Fix #8, add quotes add quotes around $username in authenticateUser
Fix #9, prevent duplicate (user,problem) in submission, add sum(points) of user function

add contest rank rewards, projects