api: retrieve simple list of links via /api/links

The exact form of the returned output is still up in the air a little.