Implements attribute matching rules

Should cover https://github.com/ingydotnet/pquery-pm/issues/2