WIP repository work

Just making this work visible for others to comment.

Includes some temporary hacks that should NOT be merged in (fake request - generate on actual local storage).