Implement automatic build log
Merge branch 'master' into autobuildlog
Add get_build_log() to program + device set always const in program

Other small improvements