Add missing String.contains methods 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