Fix typos, add logging and session settings.

* make Horizon log at DEBUG level if debugging is set;
* add switch to use memcached when it'll be available, use file backend for sessions for now;
* fix typos