Built version of sniff based on regex matching.

Added Gruntfile.
Added unit tests.