Istanbul votes in test for Erdogan and Turkish democracy