An exercise in rebuilding Rails