Be more consistent and slightly more lenient when handling GET params

Fixes an inconsistency when passed length of buffer without NUL terminating
character (ie. "this_key_is_present=&but_this_one_is_not=").

Also handles the "key" without = case by ignoring the key.

Signed-off-by: Mark Ellzey <socket@gmail.com>
Empty query args processed with a val of NULL, extended the test_query code
add connection connected status for client connection

Signed-off-by: Mark Ellzey <socket@gmail.com>
Added on_event hook / cleanup
Fixed bug with calling user-defined event callback :)

Don't do: (*cb)(stuff), do (cb)(stuff) <- mark is an idiot
Add a pkg-config .pc file
TestBigEndian, and add big endian versions of _str*cmp macros
ignore build directory (submodule doesnt become dirty on build)
Merge pull request #130 from tjeezy/develop_ignore_build

ignore build directory (submodule doesnt become dirty on build)
Fix some empty GET param cases (with tests)
Merge pull request #134 from tjeezy/fix_get_params_rebased

Fix some empty GET param cases (with tests)
Merge branch 'develop' into feature/bigendian
Formatting cleanup
Merge branch 'feature/bigendian' into develop
Cleanup and fixes
Merge pull request #146 from zerotao/libevhtp2

Fix build error on OSX Yosemite
ws-hdr order fix, added test client code for test_ws.c
Merge branch 'libevhtp2' of github.com:ellzey/libevhtp into libevhtp2
added padding for all structs containing bitfields

- some structures were using bitfields without proper padding, so that
  was fixed.

- some cleanups to htparse.c
Backpatch from a2ebece503 (field padding)