Move backend/frontend to modules