RFC: Add option to use a different handler on Base.test

Inspired by https://groups.google.com/forum/?fromgroups=#!topic/julia-dev/rR3mFhOwWio, this commit adds a macro (`@register_handler`) to allow setting up a different handler for the `Base.Test` module.