Bugfix in conns_by_type db queries + JSON support.
Merge branch 'master' of github.com:fakub/CryptoMessageServer