Rewritten logout command in Javascript instead of PHP.
Introduced command-line interface.