Introduced setRestBasePath. Implements #14