Add support for segment/:id/ways and node/:id/segments API calls. Fixes #452.