restificate the list api

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #99 from tych0/restlist

restificate the list api