Bis2012 scheme filter api

This is work start for https://podio.com/bitzesty/bis-phase-2/apps/stories/items/12

I'm merging all changes to refactor associations a little (to use postgres arrays).