refactored getTags to use HttpClient#post method.
included exception class to distinguish API request errors.
made tags as attributes property default to false.
fix bug preventing tags-as-attributes flag from being unset.