change how createIndices works to support creating more than one type at one go.
remove un-used code, and update tests
add toJSON to schema, to support retrieving raw schema
Merge pull request #27 from limianwang/master

Update Elastic Search Indices as well as schema toJSON