The LAICA Project: An ad-hoc middleware to support Ambient Intelligence