Added tests for multi-part user data plugins.

also replaced open methods with the wrapped one from utils module, added
creation of part-handler directory, replaced __import__ method with
importlib.import_module method in the part-handler script.