[WIP][SPARK-2179][SQL] Public API for DataTypes and Schema

The current PR contains the following changes:
* Expose `DataType`s in the sql package (internal details are private to sql).
* Introduce `createSchemaRDD` to create a `SchemaRDD` from an `RDD` with a provided schema (represented by a `StructType`) and a provided function to construct `Row`,
* Add a function `simpleString` to every `DataType`. Also, the schema represented by a `StructType` can be visualized by `printSchema`.

An example of using `createSchemaRDD` is shown below.
```scala
import org.apache.spark.sql._
val sqlContext = new org.apache.spark.sql.SQLContext(sc)

val schema =
  StructType(
    StructField("name", StringType, false) ::
    StructField("age", IntegerType, true) :: Nil)

def constructRow(record: String): Row = {
  val items = record.split(",")
  Row(items(0), items(1).trim.toInt)
}

val people = sc.textFile("examples/src/main/resources/people.txt")
val peopleSchemaRDD = sqlContext.createSchemaRDD(people, schema, constructRow)
peopleSchemaRDD.printSchema
// root
// |-- name: string (nullable = false)
// |-- age: integer (nullable = true)

peopleSchemaRDD.registerAsTable("people")
sqlContext.sql("select name from people").collect.foreach(println)
```

I am working on the following things.
* Add a field `containsNull` to `ArrayType`. So, we can explicitly mark if an `ArrayType` can contain null values.
* Move those general purpose functions introduced with the JSON support to the type system.
* Add pre-defined `constructRow` functions to help users easily use `createSchemaRDD` (e.g. applying a schema to a JSON dataset).
* Add a method to let user optionally validate the schema of a `SchemaRDD` by checking every row.
* Python and Java APIs.
* Add needed tests.
* Add needed docs.

JIRA: https://issues.apache.org/jira/browse/SPARK-2179
We do not have to change it. I was thinking probably users have not noticed this API and `formattedSchemaString` may be a more meaningful name. I can change it back if you think using the current name is better.