Changed to nghttp based encoding algorithm
Added story based tests