Updated Index page:
Checked for effects to stop PHP warnings
Updated logic around duration display
Removed sleep on 'Turn Off' event

Updated General javascript:
Added logic to show / hide duration slider

Updated Farbtastic javascript:
Added a has to the backgroundColor event

Updated RemoteCommand class:
Seperated logic to extract data from commands 'getEffects' and 'getCommands'
Check variables are set to complete 'executeCommand' otherwise return false