Leaderboards

Added support for leaderboards. Added function to check if user is
logged in.