VOL-54: Replaced a bunch of redundant code by adding private property $_project.
VOL-54: Small improvement to API call for getting the current domain.