Gave a few errors more specific codes.
Further refactored raw default template loading.
Made the site processing method a bit more straightforward.
Fixed a file system race condition. This is why I should read the docs.