Moved the code for parsing headers into Headers.

Also, allow new Headers(str)