Fixed date format and plugin crash bugs.

Please see code comments and commit log. Plugin now compatible with latest OpenElec 3.0.0 and should work better for all other XBMC users too.