Split project into frontend and backend packages