Allow full path in custom_handler config

Use imp module to load custom handlers from arbitrary paths, so it
doesn't need to be in the PYTHONPATH.