A Palo Alto startup tried to give the shop on the corner a marketing department in a browser. Its cleverest tool was not the algorithm, but the shop next door.