Added ability to protect pages from unauthenticated users, remember user logins, expansion library