Fixed continuation and long-frames bugs reported by Immanuel.
Also fixed bugs when no handler was found on server connection.