make TRI_ENABLE_MAINTAINER_MODE available everywhere
return error if oom
removed variant objects, switched to JSON instead