[os] Implement uptime() method
[os] Use sysinfo() for totalmem() and freemem()