Cleanup for release.
Fix error handling and logging.
Enforce reliable base for URL

The CGI url(-base => 1) code appears to use 'localhost' at inconvenient times. This forces a configuration-based URL instead. Not as flexible, but more reliable.
Restore logging of failure messages in notify headers.
Correct character allocation for tweets with attachments.