beam: move Route and Server out of the examples and into beam