[FEATURE] Allow createElement to take a hash of attributes

Should close out #87.
Seems safe to presume an object if `attrs` is truthy.