Modified build system with logging, src cache and output dir
add 0logs, 0pets_out, 0sources
upgrade all builds for functions library
add functions library