Add logic to await termination of compile threads to allow generated JS to be used later in startup (such as with Resources plugin); bump version to 0.2.