Protecting Privacy in the Age of Location-based Services