Add uptime to status

new: uptime in status
cleanup: api now uses json encoders everywhere