Change all JS paths to relative paths

Allows for using agocontrol behind a proxy with a sub-directory, i.e. if having nginx which maps /agocontrol/* to the agocontrol http servers /
Fix build with clang/C++11 which defines std::next

Required to build on stock FreeBSD 10.0. Not sure if there is a more
appropriate fix for this though...
Fix french typo
Use configured threads number for each ports
Fix missing result when saving blockly script
Update blockly core
Fix bugs in agoblockly ("content." was removed from event property, quotes added to event, convert content.level to number)
 Merge branch 'js-relative-paths' into 'develop'

Js Relative Paths

Changes all "/cgi-bin" and similar references to relative "cgi-bin", see commitmsg.
Avoid "control reaches end of non-void function" warning
Fix 'format string is not a string literal (potentially insecure)'
Additional std::next C++11 fix

Was to go with 2b7bfe54701ad59566ed1c5f9861b80ee59cb82f but apparently missed
Replace event.environment.distancechanged by event.device.distancechanged according to 10-automation.yaml (thx mikeones!)
Offer possibility to deactivate data logging using conf file
Force bin path ( This file is uploaded directly from git)
Fix bug in upload (file must be written before sending command)
Fix message "Webserver internal error, please reload page"
add some german translation
Merge branch 'develop' of http://git.agocontrol.com/agocontrol/agocontrol into develop