Core: refactor storage layer, pt.5 (#391).

Deleting a lot of bridging code.
The MehtaGraph API is about to be dropped.

Does not yet compile.

See ticket 391.