Added xml and json responses. Added custom array to xml function.
Headers now available through the router.
XML structure different than json. added ability to switch between them and updated validation rules.
Too much white space.
changed the default to JSON.
Merge branch 'feature/headers' into develop