[FEATURE] Allow createElement to take a hash of attributes

Should close out #87.