js: Add support for plugins to set cookies directly

refs #1796
Fix crash in UPNP code

Fixes #1773
	added deps for rpi building and how to update it on device:   README.markdown
	Finally got rid of HDD Recorder in LG Simplink menu. Now CD player is active and selected properly:   src/arch/rpi/rpi_cec.c
rpi: Improve CEC a bit

Add a Settings group to control CEC

User can now select if Showtime should ask TV to switch to its
input when Showtime is started (default disabled).

User can also select if Showtime should shutdown the UI when
it detects that the TV is off. (default disabled).
stos: sync() after critical writes to disk
rpi: If video buffer allocation hangs, bail out
posix: Use monotonic timers where appropriate

This avoid issues when NTP adjust clock
ps3: Relax memory warning thresholds a bit. Now that we use TLSF it's much less of a problem