utils.py:
- increased BOUNDARY string length, seems recommended to have more than 4 dashes prefixed...dunno if it really makes a difference
- make sure we close the file in post_sample()
- add content-length to headers for the length of the body
- better exception handling for bad responses in post_sample()