The Lib Dem victory in Richmond Park contains implications that should worry both the Tories and Labour.