Support for non-production environment & link attachments

I have added support for working in a non-production environment (for enterprise accounts, e.g. test.salesforce.com for authentication) as well as support for link attachments in posts. This implementation requires API version 27.0 since the attachmentType property is used.