Add minimal uptime implementation

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Add .gitignore

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>