Dev unix socket v0.4

Some misc improvements to unix-socket.

PR builds:
- PR build: https://buildbot.openinfosecfoundation.org/builders/regit/builds/22
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/regit-pcap/builds/20