Efficiently Managing Location Information with Privacy Requirements in Wi-Fi Networks: a Middleware Approach