Added Cookie based security support.
Relocated Logout button.
Merged addauth branch.