Normalize line endings. Added JSON class and tweakes Response class.