Added User environment variables support in broker
Added REST api support for user environment variables
Use x.present? instead of (not x.nil? and  not x.empty?)