Updated td.py with some proper-fixes for tdReleaseString

Upstream commit: https://bitbucket.org/davka003/pytelldus/pull-request/3/fix-tdreleasestring-properly/diff
add delscript
add agoblockly french translation
fixes #172 - don't try to execute cgi without execute permissions
when plugin failed to load, "loading" div doesn't disappear
add script deletion
fix some javascript warnings
resolution fix on smaller displays - fixes #115
integrate devicecommand into sendcommand
fix problem with setvariable
add sleep function
move agocontrol logic blocks in new logic submenu under agocontrol menu
Change to yahooweather. Only report changed values
agotellstick: Fixup event receiver

Prev code failed if dev_delay was not populated
agotellstick: Fix setting of device names

Removed agogeneral, reading local database is probably not recommended, we want to use the inventory instead.
Also need to talk with inventory to get a hold of the agoController UUID so we can actually send it somewhere.
agotellstick: postpone loading of modules

tellsticknet module has more dependencies than tellstickduo. This lets duo-users
avoid installing those python modules.
agotellstick: fix for finding codeswitch devices

Regular switches ("codeswitch") was detected as sensors and did not show up as controllabel items.
Not sure how sensors are identified however, cannot find docs on that..
So, possibly needs further adjustment.
web: Rework event parser

Make the parser more robust to handle nested criteria.
Should fix http://www.agocontrol.com/trac/ticket/157
add french translation to agoalert
Event saving: fix problem with storing nested events

Having two sub-groups OR'ed, each consisting of two operators AND'ed,
but with no operator in the root group, yielded the following nesting:

   ' or ((criteria[0] and criteria[1])) or ((criteria[2] and criteria[3])))'

which condensed to

   '((criteria[0] and criteria[1])) or ((criteria[2] and criteria[3])))'

Which failed to execute in the backend.

This patch ensures we have an additional ( instead of  ' or ', if there
is no operator in the root group.
events: Fix table update after delete
fix table delete for floorplan, rooms, scenarios and variables as well
events: Cleanup