Add missing String.contains method and fatal-exception classes

These commits adds some missing pieces of the Java compatibility layer discovered during work on the Sudoku solver benchmark: https://github.com/jonas/scalajs-benchmarks/tree/master/sudoku