Adding REST API to trigger reindexing, adding parameters to specify path to reindex and toggle recursiveness