Added composer.json and pass through loader function

Fixes #28