Send client protocol abort message on bad request

Refactor protocol interface into its own header. Send client abort
message on bad requests.

Fixes #47.
Adding protocol.h to Makefile.am
Merge pull request #58 from dlundquist/bad-request-handling

Bad request handling
Merge remote-tracking branch 'github/master' into nonblocking-connect

Conflicts:
	src/connection.c