First Principles for Regulating the Sharing Economy