more refactoring, added log_out method, and added admin_stats_spec