Added instance loader and refresh instances endpoint. Added a depth parameter to retreivals.