Restructure into frontend/backend folders