Proof of concept to inject custom JavaScript objects on WebWorker context.

Were added callbacks of initialize and terminate for WebWorkers.
An API test was added to check the these callbacks. It verifies the two types of workers, dedicated and shared.

Reviewed by: Rafael Brandão