For #6 updated tests a bit to prepare for v3.  Also moved methods only used in v2 to v2 writer. Added some test coverage to url class.  fixed some php docs