ticket:2. Added Logout button; some code alignment;
ticket:2. DBManager now more fail-tolerant;
ticket:2. Further work on Facebook session management; added some logging.