Refactor spinner and error handling in Resource
Properly handle promises
Refactor in auth
Minor formatting
Minor refactor