Feature/3403 add support for multiple schema

Some code moved to leap.common, pullreq: https://github.com/leapcode/leap_pycommon/pull/51
This code will not work without that pullreq.
Should be merged/discarded together or will not work.