removed getCanonicalUrl function
fixed regex pattern in _rewriteUrls for URL end on /
Merge pull request #14 from marler/master

removed CanonicalUrl & fixed rewriteURL regex pattern