Added a way to extend JavaScript.as's JSON replacers and revivers.

Change-Id: If4c935bf7878c428e70aa8b687ac135b1ef7b018