Add scope attribute to body classes

For now, this may be set to either 'bundle' or 'namespace'. Default is 'namespace'.
See feature request #2013