Add custom request builder callbacks

It'd be nice to have complete control over the request xml for authorization and logout.  This PR gives the caller the ability to pass in some callback methods to build custom XML.