refactor backend and workers to use amdefine, add tests for workers, add ios onboarding views