Linkto

Fix some issues with http dealing with linktos pointing to deleted events.
Add tests for client api in same situation