manually implement the relevant bits of Sub::Exporter

This doesn't cover absolutely every feature of Sub::Exporter, but it should handle all the features which Devel::Main documents (such as `{ -as => "foo" }`).