Added User environment variables support in broker

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

Allow environment variables support for REST version <= 1.5