CSharp Changes

Fixed a bug where the invoker wasn't closing the WebResponse if an exception occured.  This caused the next call to block forever trying to get the next WebResponse.

Also added the ability to set the basePath in the constructor of the api object if desired.