[#2274] Moved setRECacheSaltFromEnv from initServer to miscServerFunct

Preserves c api. initServer.hpp ends up being included by the c api
headers