Spanish & Galician translations

And two minor changes for translate strings
Added a new GetDeviceByID static method for future use and added an optional json encoding method to the search results.
SQL error from the conversion process.  INSERT should have been UPDATE. close #254
Added a check to ensure a device port has been labeled and cleaned up an error that resulted in a false link when cancel was clicked. close #252
Update contacts.php

Change length of userid to 40 from 8 in the data validation.
First draft of an idea on how to set all the media types on a device.  Need to test on multiple scenarios. #217
More of the js for the media types. #217
Update to the device template manager to properly use the true / false return from the method instead of a text status
Spanish & Galician languaje updates
Fixed some minor bugs.
Merge branch 'master' of https://github.com/samilliken/openDCIM
Standardization changes that were somehow missed in the cabinet class and a correction to the ESX method that was broken. close #255
Merge branch 'master' of https://github.com/samilliken/openDCIM
Standardization changes that were somehow missed in the cabinet class and a correction to the ESX method that was broken. close #255
Added a check into the MakeSafe() method of Device class to exit out if called as a procedure rather than an instance.

#256
The RefreshInventory method was expecting a DeviceID for input, but was receiving a Device object.  Modified the parameters to properly handle that.

Fixed #256
Had to add in logic to test for whether or not parameter is an object, as the in-page Refresh passes a DeviceID, rather than an object.

#256
Added a check in the installer to avoid erroring out completely when SSL is not set, per jomigom's request.
More of the JS for the MediaType setting #217
Merge branch 'master' of https://github.com/samilliken/openDCIM