Makes code more consistent and fixes bug with ironicclient error reporting. Also make NodeInfo.ports() return a dict to be more useful for callers (like process.py). Change-Id: I6ba587a31e839aba511c16fbf93047c7fdc54cc2 Closes-Bug: #1464184