[CDF-231] Added Endpoints.getPluginBase() and Endpoints.getPluginEndpoint() functions to cdf-base.js
[CDF-231] Changed cpk query types url to use Endpoints.getPluginEndpoint function.
Merge branch 'core-refactor' of github.com:webdetails/cdf into core-refactor