Added temp directory and lock file.
Moved some files.
Implemented compilation and loading of underlying build scripts.
Fixed multiple bugs.