Split into library and executable; change .cabal to build with curl if not on windows

Conflicts:

	src/xml-to-json.hs
	xml-to-json.cabal