Fixes #3874 : Correct API Nodes : pending nodes details and change status

http://www.rudder-project.org/redmine/issues/3874

We need to correct two things here in Nodes API : 

- pending node were not displayed when looking for details

- Improve change pending node status