Fix machine list API endpoint.
Fix machine list API endpoint.

* Fix method signature.
* Raise 500 error and use failure_response when there is an error instead of invalid_creds.

	modified:   api/machine.py

CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend