Missed a property in the MakeSafe method for the PowerDistribution class.  close #243
Partial fix for #244.  Added an object reset to the GetDeptByID method if the lookup fails.
The link for the "Surplus" feature was still using the array index as the DeviceID, rather than $obj->DeviceID, which is incorrect.

Fixed #247
Correction on the JS for the configuration page that was improperly clearing some values. close #248
Returning a multidimensional array, rather than an object, to decrease the network overhead when making patch connections.

Needs more testing before we close out the issue.  For installation at ORNL, decreased the reply from 1.6 MB to 110 KB, and response time from 1.70s to 1.09s.  May be some more database query optimization that we can do as well.

#249
Merge branch 'master' of https://github.com/samilliken/openDCIM
Changed the getPortStatus method to pull all ifOperStatus results and search for the index matching the FirstPortNum, and then count the next $Ports results to return.  Previously we had assumed that the port indices would be sequential, but when the FEX came out that changed - I think it's using 64 bit counters.  This fixes that issue.

Fixed #250
Added more unnecessary braces for Wilbur.
Added a missing break statement in the case conditional.

#251
Port names were being ghosted when there was no attached device on a port in the exceptions list.  Changed the way that is handled so that it prints a non-blocking space instead.
Modified device selection sql that should be far more efficient. Test against a large dataset to see how much better. #249
Merge remote-tracking branch 'upstream/master'