Implementation of INDEX_DOCUMENT scripts commands

INDEX_DOCUMENT_NEW(lang)
INDEX_DOCUMENT_ADD_VALUE(field, value, boost)
INDEX_DOCUMENT_UPDATE