ac-7208 make the pbsnodes -m command synchronous so I can get the error back to the user.
trq-2613 return the error code from setting the power state for nodes.
Fixed a unit test.