Merge pull request #19 from ollieh/master

Fixed truncation of strings, needed nullbyte at end to be a C string
Add Tox parameter to FR callback to reflect API changes
Hopefully fix all API changes
Testing signed commit
Revert "Testing signed commit"

This reverts commit 6589d22185e09fd4421ffdad5a5fdd7ff847158d.
Fix possible deadlocks detected by Findbugs
New code style guidelines

Reformat all code according to new guidelines and add c.astylerc and
java.astylerc for formatting.
Refactoring
Add support for typing change callbacks
Fix null terminator bug.

Signed-off-by: Sean Qureshi <sean@tox.im>
File sending wrapped, it compiles but I don't know if it works.