added policy files, changed structure of packages (removed MWS package),
and moved most of the customer functionality to the Middleware class.