Implement Runtime#{free,total}Memory()

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>