Add security limiters to tunnels

Implements most of the stuff listed in https://github.com/Tribler/tribler/issues/679
maybe it would be a good idea to hex(data[:40]) so the jenkins xml parser doesn't go belly up when parsing the unit test report?