Revert "Fix message sending. Closes #116"

This reverts commit d2d8ed86b20f49127bf37a1316509d862239cc20.

Conflicts:
	public/js/site.js
Fix ajax send message attachment handle. Extract attach handle function. Closes #112