Validate to convert Rules to array using getFilter.
slightly refactored init staff.
added tests.
fixed test to match email are now considered as mail.
added filter_message and err_msg is now using message.
pass filter so that applyFilters is more confined.
message in filter is set by Filter object. so removed it.
added clearer comment; refactored weired loop with keys.
fixed comment.