implemented resource decay when over cap
implemented isActive behaviour for capacity-changing structures
fixed isProducer flag in structure
Merge remote-tracking branch 'origin/master'