Separated out repsitories dependencies.
IDE-1163

- Added low-level support for custom template location
  preference.
- Added new unit test for testing low level template pref