Solves performance issues by: adding into taskqueue & putting into datastore operations in batches, defers populating the liked bands of a user/friend into taskqueue, uses key_name where possible (rather than querying with fields), when querying makes a keys_only query, adds some conditions to avoid unnecessary REST requests. Also, refactors code (seperates classes and adds a util module)