Made plugin runnable on new thread

Changed plugin stucture to not block the WebCore thread