Implement files REST API

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
wip