The principle of general intelligent action and the design of complex adaptative systems