Adjusted one M2M test.
Configuration inside the state.
Added node to the returned resource list from RootR.
Returning the resource for controller node.
Refactoring.