[SQL] SPARK-1333 First draft of java API

WIP: Some work remains...
 * [ ] Hive support
 * [ ] Tests
 * [ ] Update docs

Feedback welcome!