Fix bug in freshName() leading to name clashes.
Define errors and exception classes used by scala.util.Try.

This adds class definitions used by Try() for checking whether an
exception is non-fatal.
Add support for java.lang.String search methods.

 - contains() and startsWith() are implemented using indexOf.
 - endsWith() is implemented using lastIndexOf.
Add minimal java.lang.Thread and java.lang.Runnable.

This the following compilation issue with Java JDK 1.7.0_45 on Mac OS:

  [info] Compiling 31 Scala sources to /Users/ben_hutchison/swork/js/scala-js/javalib/target/scala-2.10/classes...
  [error] error: error while loading Runnable, class file '/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar(java/lang/Runnable.class)' has location not matching its contents: contains class java.lang.
  [error] one error found

Thread was used by the ThreadLocal implementation and the missing Thread
and Runnable class seems to make the compiler load it from the JRE.
Add minimal java.util.Arrays implementation required by scala.collection.

Three parts of the Scala collection library uses Arrays:

 - Arrays.fill is used by FlatHashTable and HashTable:

   scala/collection/mutable/FlatHashTable.scala:    else java.util.Arrays.fill(sizemap, 0)
   scala/collection/mutable/HashTable.scala:    else java.util.Arrays.fill(sizemap, 0)

 - Arrays.sort is used by SeqLike.sorted and is implemented using the
   native JS array sort method. Access to the underlying Array is
   special-cased so that code uses dot-select as suggested by Sébastien.

   scala/collection/SeqLike.scala:    java.util.Arrays.sort(arr.array, ord.asInstanceOf[Ordering[Object]])

With this and support for java.lang.String.endsWith the following
partests run (when the parallel part of hashset is disabled).

 - run/hashset.scala
 - run/comparable-comparator.scala
 - run/colltest1.scala
 - run/mutable-treeset.scala
Fix compilation issue Math not found on some JDKs.
Implement String.{startsWith,endsWith} with helpers.

So that arguments are not evaluated twice.
Merge branch 'patch-1'
Merge remote-tracking branch 'jonas/patch-2'
Fix dangling files coming from previous compilation runs.

When the inheritance chain of some class C changes from
one compilation run to the other, the .js file for C
changes name, because its ordering prefix changes.

This commit makes sure that files generated by previous
compilation runs are deleted.
Add publishing details.

Now Scala.js is available publicly on its own repo:
http://repo.scala-js.org/repo/{releases,snapshots}/
Automatically delete .js and .js.map files for deleted classes.

The sbt plugin now patches the IncOptions of Scala.js projects,
so that, when a .class file must be deleted, so are the
corresponding .js and .js.map files.
Exclude parallel collections and util.parsing from stdlib.

Or how to lose 8 MB of uncompressed code and > 50 % of
compressed code with 3 lines in the build file.
Delete java.io.Appendable.

There can be only one and that is java.lang.Appendable.
Add Scala.js test suite.

It can be run with:
sbt> scalajs-test/test
Update Website link.
Merge pull request #41 from jonas/delete-java-io-appendable

Delete java.io.Appendable.
Fix #39: js.Array of Int causes ClassCastExceptions.

Actually the problem was more general: giving values of
Scala primitive types to a JS method with varargs of a
generic type (or Any) caused the values not to be boxed.

This commit includes a non-optimal fix that basically
discards the "optimization" of expanding the actual
arguments when they are primitive value types. Instead
it uses js.Any.fromTraversableOnce and calls apply on
the method.

A proper implementation should test when the values must
be boxed in that case. But figuring this out with the
information we have after erasure is tricky.
Add travis configuration.
Trace JavaScript exceptions instead of hard-printing them.

Hence the traces are 'suppressed' by sbt and can be
recalled with the 'last' command.