modify action dispatcher for AWS OpsWorks compatibility.
use another column for STI instead of 'type'
modify layer model to justify layer-instance relation.