Connection, const: add bits necessary for getheaders/headers

NOTE: This branch extends the previous pull request #18.

Pulling this will get both #18 and these changes.

Alternately, if #18 was already pulled, only one change will display below (the headers change).