Add assertions and allow handlers to be relative to basedir.

Fixes #15. Add more validation/assertions and allow handlers property to depend on basedir for resolution.