Replaced use of Object.blank? method with Domain::blank? method.

Use of Object.blank? creates a dependency on Rails.
See http://api.rubyonrails.org/classes/Object.html#method-i-blank-3F
A new self.blank? method has been added to Domain class to replace this functionality,
removing the dependency which was causing tests to fail if Rails is not installed.