added ability to store data on requests and responses and api
added json and $ phase keys
changed variable name from phase key to phase qualifier