Unified Sector and StarSystem caches

**To be merged after #2879** (builds upon this PR)

As mentioned in the synchronous jobs PR, this unifies Sector and StarSystem caches by creating a templated base class for the caches. The ```StarSystem``` cache is filled with synchronous jobs when a new ```Space``` is created and once the ```Sector``` cache is successfully filled.