1) created url utility mehod to ensure trailing slash
2) modified the DeleteWebPart and AddWebPartToWikiPage functions to work with subsites.