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