Optimizations for saltutil.sync_all and state.highstate

This optimizes saltutil.sync_all by only reading the top file once, and storing the results in the ``__context__`` dict, rather than reading the top file again when each custom type is synced.

In addition, a redundant module refresh has been removed in ``salt.state.BaseHighState.load_dynamic()``.