Various bug fixes

Changed to using user.uid instead of user.id for unique user
identification.  Fixed login after account creation.  Added
security_rules.json.  Fixed pool creation.