7.0 refactoring

This is a rebased version of your changes. Please merge this to your branch in order to have what we need to close https://github.com/OCA/connector-prestashop/pull/1