fix more compatibility issues with Python 2.6 and 3.2

- fix decoding of received message
- binary result for attachment content
- maps to lists for python 3.2
change merge_ticket to support RT4 API
add edit_link call to replace buggy edit_ticket_links
test merge_ticket and edit_link methods