Added REST api support for user environment variables

Allow environment variables support for REST version <= 1.5