Built version of sniff based on regex matching.

Added Gruntfile.
Added unit tests.
Merge pull request #1 from neogeek/master

Built version of sniff based on regex matching.