Fixed #9, added basic security manager. Might still have some problems with being able to do things on load. But it cannot do anything bad while running.