Merge pull request #1 from jpgarcia/master

Fixed missing file variable issue + added support for ejs templates
bumped package json
keeping the original hash on the URLs (key for #iefix on fonts)
applied patch from @tony
fixed reghtml to only look at href and src attributes and on both absolute and relative urls
added options.flatten boolean which converts ALL relative resources by chopping off all the "../" and replacing with with "/" essentially flattening the references.
added some useful log output
fixed issue with non-matches returning undefined
further simplifying reghtml to make the matching sequence similar to regcss as further filtering is done within the cdnUrl function.
updated docs
version bump and Grunt 0.4 ready
added stripDirs option
don't rewrite templated src and hrefs
Merge pull request #5 from caphun/master

Grunt 0.4 ready with bugfixes
Update package.json
Added support for .hbs Handlebars template type.
Fixed initialization so it determines the type of processing from supportedTypes.
Merge pull request #7 from williamsjj/master

Added support for Handlebars .hbs template type and fixed initialization so it uses supportedTypes.
Update package.json
Fix issue with using protocol-relative URL as a CDN.
Protocol-relative URLs allow the dynamic resolution of asset protocols using the current page protocol (typically HTTP or HTTPS) rather than hard-coding to one or the other.
The current issue is caused by the path.join command which removes all double-slashes.
The fix will detect the double-slash at the begining of the defined CDN value (interpreting it as a protocol-relative URL), and re-add the double-slash after path.join has completed, if applicable.

For example:
  cdn: '//cdn.cloudfront.net/container/'

  Before patch would result in URLs like:
     /cdn.cloudfront.net/container/some_static_asset.js

  After patch:
     //cdn.cloudfront.net/container/some_static_asset.js