Get prefixes directly from store
Make expandPrefix compatible to late N3.js versions
Some minor code cleanups