Towards Middleware Services for Ad-Hoc Network Applications