Import user-defined module

Not completely ready, but I'd like to run the full test suite at this point.