Merge pull request #2 from frodegill/master

Refactored to be able to expose HTTP status codes
Added createIndex (with optional data for mappings etc)
Added functions for delete index and type