Add unit test

Add unit test for DefaultJsonEncoder et FileEncoder
Add class on exception handler

add class when exception is throw on javascript.
Class is the exception class
Add default handler

Add ssa.defaultFailHandler and ssa.defaultPhpErrorHandler.
fixed #7