LIB: Fix error where evbuffer_pullup was being given wrong msg length

Ticket #741
Ticket #742
Merge branch 'integration' of ssh://helios/home/git/repositories/Nova into integration