Add ability to provide a handler loader function

Fixes #5

Depends on #4
Merge pull request #6 from wikimedia/handler-loader

Add ability to provide a handler loader function