[GAE Server] Refactored code related to favorite apps of user