Implemented new interface for assets.

* Not sure if this is the way to go yet, but this was one of the
  proposals in #35.