Compilable

BSLogger: Now with causes!
Actually write modules.json on startup, because not having it is kinda
bad!