Fix Issue #523: viewEngine$createView does not deliver promise but deferred object when returning cached element

-Improved the view engine's cache api.