added new deal routes and associated api plumbing on server and client to support them