implement MemInfo.mem_total on Mac OS X

Currently, on Mac OS X, the XHR request to `/admin/dashboard` fails with an error at MemInfo.mem_total, because there is no `/proc/meminfo` on Mac OS. This implements a simple system detection and uses `sysctl` on Darwin kernels.