Flush buffer at end of index.
New Exception class: InvalidConfig
Initial work on isLoggedIn