Create node/relationship index with configuration

Added a 2nd parameter to createNodeIndex and createRelationshipIndex
methods to accept a index configuration object.  If second parameter is
passed null or empty, an index with default configuration will be
created.  Corresponding tests are also added.