[RJ-Server] Added support for environment variable R_MAX_MEM_SIZE

Signed-off-by: Stephan Wahlbrink <sw@wahlbrink.eu>