Towards an organic mobile terminal by utilising agent-based monitoring in a reconfigurable protocol stack