aTV setting/dialog to sign in to /out from MyPlex (begin merging #150)

improvements over #150:
- GUI/handling: supports cancel, failed login, less screens/clutter on
the way...
remaining issues that need look-into:
- username/password are sent in plain text to PlexConnect (local
network). Need encryption?
- username/password will end up in logfile (PlexConnect.log). Be
careful, when posting an issue with Myplex Sign In...
- when username/password dialog is switched, it fades through the
settings page. Why? How to avoid?
added linux/mac daemon code

usage:
>cd /PlexConnect
>sudo ./PlexConnect_daemon.bash start
>sudo ./PlexConnect_daemon.bash status
>sudo ./PlexConnect_daemon.bash stop
some fixes for last commit: remove debug output, remove brackets, add device info to MyPlex login
major cleanup

- push PlexAPI stuff from XMLConverter to PlexAPI.py (renamed PlexGDM)
- push XML pretty print to Debug.py: prettyXML()
- PlexApi: rewrite GetURL()/ReadFromURL() from httplib to urllib2,
combine into getXMLFromPMS()
couple of fixes, more test environment
Fix:- return to correct section in Photo Nav Bar
Merge pull request #166 from bwynants/daemonized

added linux/mac daemon code.
...we have to find a way to limit adding clutter for every OS to be supported to the main directory, though.
add aTV UDID to first PlexConnect call. Clean up "old firmware" message on the way.
PlexConnect can now serve the cer file to the atv.

See this post:-
http://forums.plexapp.com/index.php/topic/82597-how-to-transfer-trailerscer-using-plexconnect-no-usb/

No need to serve up application.js separately.
... and the unix separator equivalent
add log setting "Off" - per Roidy's request :-D
rework {{IMAGEURL()}}

changed syntax: IMAGEURL(key:dflt:width:height)
- new options: width, height. width='' will "direct play", width=<int>
will invoke the transcoder.
quick fix for 796c17a63838906ea48eb11ad8454ad8f24bb1af
Added Recently Viewed Episodes to TV OnDeck section
make aTV aware of PMS address(es)

- add PMSaddress to URL when calling PlexConnect
- get rid of aTV UDID '007'
- replace g_param[Addr_PMS] by local PMSaddress
Todo:
- when "search"ed for a file, replay settings are not renewed
- PMS re-discovery is currently not re-triggered when PMS wasn't seen
at startup.
respecting configured location of certificates when serving .cer file
add AuthToken to XML + video request

- allows browsing library and watching movies from PMS with "require
myplex authentication" set
- todo: add Token to image requests - unfortunately they are all grey
boxes right now.
PMS with "require myplex authentication" for images...
Keep record of connecting aTV UDID/IP. Use IP to look up UDID if later one is unknown.
fix for 'indirect' video - push decision from PlexAPI back to XMLConverter