Minor changes: debug window in dev environment, admin session cookie, other minor stuff