Added phpdoc documentation
Added documentation for functions
Added documentation for functions
Added auto-wildcard and auto-reverse search options to search page
Redirect to accessed page on login rather than index.
Include query string args in login redirect.