Raise on error
Convert tags to comma-separated list

Pinboard expects multiple tags=foo,bar separated by comma instead of
the HTTP way of tag=foo&tag=bar. This commit adds conversion of a tag
array to a comma-separated list as per Pinboard API spec.
Add replace, shared, and toread flags