Security and Dependability for Ambient Intelligence