Adding nested type feature

Adding functionality to set nested type attribute in elasticsearch using elastictastic for nested documents