Removes jQuery `data()` calls and refactors core `refresh()`

I'll will document my changes here within the next hours. See #147.