Added functions for register page

Made a register page, functions needed for the register page, login page
and logout page. Changed name of the folder include to includes.
javascript files can be found in the folder js.