Added debug settings.
Added comment.
Refactored sessions to use user id instead of current. currentUser observer fixes.