implemented means of passing in module to handle oauth callback

This should be ready to merge.