Refactored to pass media obj directly to the ha-lib Player
Renamed the ha-lib.js to lib naming.
Updated the ha-lib.js to current
fixed media obj so it created correctly.