Modified ScriptManager to decouple adding libraries from registering libraries Allowing ScriptManager to register libraries to other lua states as well
Cleanup of code