[FEATURE] Allow createElement to take a hash of attributes

Should close out #87.
So basically you would have to call it like so? 

```
dom.createElement('div', null, {
  class: 'foo'
});
```