Fix core ajax content-type header.

This was a port fail from the js side of things, gotta watch out for those booleans! Fixes https://github.com/dart-lang/core-elements/issues/107.

Also added a test for the manual version of the element.