Several optimizations to module loading + automatic reloading when code changed