add 'initXById' methods for lazily loaded entities; 'getXById' now makes API request; make custom routes available in API