fixed space issue in endpoint.rb
moved default location constraint logic from config_loader.rb to endpoint.rb