fix some issues with scala script verticles and add some implicit helpers for JSON