Bug fix: Correctly relabel selects of implicit joins in relabelUnions.

Fixes issue #56. Test case: UnionTest.testUnionOfJoins
(cherry picked from commit 21bef4c90f1382dfbcb0ef00a74d2a056065287a)
Fix lifting of aggregation functions which reference other generators.

Also use only new-style aggregations in the test cases. The old-style
aggregations will be removed (on master) and deprecated (on 1.0) in
separate commits.

Fixes issue #61.
(cherry picked from commit df40f1d7c135df3040930cad13cefaabaca67e00)

Conflicts:

	slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/OldTest.scala
	src/main/scala/scala/slick/compiler/Relational.scala
	src/main/scala/scala/slick/lifted/Query.scala
Deprecate old-style aggregation methods.

References issue #60.
Allow fusion if the inner Comprehension is a Union wrapper.

Tested by the change in UnionTest.testBasic. This fails on SQL Server
due to incorrect sorting of query results if the comprehensions cannot
be fused.
(cherry picked from commit bec5613bcc9d2da4c8db201cf5123209bfc6dbfa)
fixed direct embedding with singletons
Expose local scala home as a system property.

A concession to the outliers among us who don't keep scala at
C:/Users/szeiger/code/scala/build/pack.

Now I can do

  sbt -Dscala.home.local=/scala/inst/3 compile

Or run git-bisect, because I can also do

  sbt -Dscala.home.local=$(find-scala-by-hash <hash>) compile
Keep type information in all AST nodes.

- The new assignTypes query compiler phase computes type info.
- In the expandTables phase, the correct structural types for the
  tables are assigned.
- Using a hybrid mutable/immutable approach for the type info in the
  AST: New nodes are modified to add the type information in place but
  no existing nodes (i.e. nodes which may have other references) may be
  updated, thus keeping the AST completely immutable on the outside
  while gaining the simplicity and efficiency of updating type info on
  existing nodes.
Narrow down ProductNode.apply to require a Seq[Node]
Merge pull request #63 from paulp/local-scala

Expose local scala home as a system property.
Build against Scala 2.10.0-RC3 and bump Slick version
Fix typing of Comprehension nodes & assign types after relational phases.

Making use of type information in the query compiler and keeping it
updated along the way will have to wait for now. Type-checking at the
end should at least give us correct SQL types for all scalar expressions.
Use the shiny new type information in the query AST for better casts.

Knowing the type of the expression to be cast allows us to support
number-to-varchar casts on Derby and integer-to-varchar casts on Access.

Test in MiscTest.testCast.
! and != support for direct embedding
direct embedding: added drop and take
refactored QueryableTest
Deprecate some Column methods for Option handling.

We should use the same methods on Rep[Option[T]] as Scala has on
Option[T].
Merge branch '1.0'

Conflicts:
	slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/OldTest.scala
	src/main/scala/scala/slick/ast/Util.scala
	src/main/scala/scala/slick/compiler/Relational.scala
	src/main/scala/scala/slick/lifted/ColumnBase.scala
	src/main/scala/scala/slick/lifted/ExtensionMethods.scala
	src/main/scala/scala/slick/lifted/Query.scala
Fix date types support on SQL Server.

- Add tests for various operations on DATE, TIME and DATETIME.
- Add test configuration for SQL Server via SQLJDBC.
- Change cast syntax in SQLServerDriver for DATE/TIME/DATETIME literals
  to use native SQL Server casts instead of ODBC casts because the
  latter has problems with non-ODBC type names when using SQLJDBC instead
  of jTDS.
- Use workaround for reading TIME values from SQL Server. jTDS returns
  them as Strings so we need to do our own parsing into Times.

Closes issue #70
Merge branch '1.0'

Conflicts:
	slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/DataTypeTest.scala
	slick-testkit/src/test/scala/scala/slick/testutil/TestDBs.scala
	src/main/scala/scala/slick/driver/SQLServerDriver.scala
Merge branch 'master' of git@github.com:slick/slick.git