Object oriented server requests and responses for javascript following the Adapter Design Pattern.