Assign blocks to stores

Blocks should only be visible if assigned to that store. Added back code from module version 1.0