Initial support for packager module

The module does not fully compile yet because of missing `switch` support in `y2r`.