Added some Data transfer objects in WebAPI with casting methods;
Modified Buying page to work with WebAPI;
Some minor config changes.