adding pidfile
adding total_consumption() so we can track total memory usage easily
bugfix, uid may not always be present
adding initial code for status command
adding more fields for the status api call