Make only one instance from market and organize webservice

using the senglton Design Pattern to make only one instance from the
market class.
Revert "Make only one instance from market and organize webservice"

This reverts commit b387d6486438032e64d240d491e2c3f6a3eb3da2.