Added callbacks to request responses, cleaned up module export.