Added functions that sandbox libraries can implement to automatically check and load scripts, as well as time out and error if a message could not be sent after too many attempts