Moving frontend code into src/frontend.