Update layoutloggedout.twig

change to add the sign in
Create cookies.js

set cookie and delete cookie
Update layoutloggedin.twig

display user name and delete cookie
Update index.php

display page contents according to page
customized study general and study periods
customized study general and study periods
Merge branch 'master' of https://github.com/yuanwl/wluxui into yuanwl-master

Conflicts:
	assets/js/cookies.js
	index.php
	templates/layoutloggedin.twig
Integrated sign in/out code
Merge branch 'yuanwl-master'
Merging sql script updates
Merge branch 'huynhjjk-master'