booleanAttr for components

Components that want to use HTML-style booleans are currently forced to write this function manually. I think this is valuable enough to can.Component users that it's good to have built-in to the define plugin.