plugins/say: support .action, too

For certified CTCP ACTION goodness.
plugins/templink: provide .shorten "API"

Now other bots can create gitinfo-powered shortlinks, too! Yay!
plugins/text_trigger: don't consider all triggers locked

This is a change related to the recent general fixes for priv checks,
which exposed this issue: all triggers were considered locked against
editing. Fix the check to only apply to triggers that actually *are*
locked.
plugins/thanks: fix fetching karma info from DB

I'm not entirely sure I like the DBI API...
plugins/text_trigger: permit opening parens right before trigger
http: be more verbose for HTTP errors