Feature/blocktype

Adds support for a blocktype field in the config file.  This value is retained when a match against a rule is made, is passed back with the result and stored in the database.