API: some cleanup, new /latest route for getting last 5 images for frontpage