Separated 'pattern' and 'type' properties in DNS model.
This will expose the resource type to the RESTful API (coming soon).
Fixed load_rules() to rebuild 'pattern' and 'type' as an array.
This was forgotten in the previous commit.