Moved config loading code in ad-hoc function.
Added mimetype detection methods and file saving method to Thing class.
Answer now goes back to full JID <account>/instance instead of only <account>.
Minor cleanup.
Image tentacle, will save them in the media folder.
Code refactoring, use Thing() save_file method.
Removed filetype module, added support for images tentacle.