Refactored loading of campaign templates to avoid excessive API calls.

Fixes campaigns page hanging as described in #49