added optional attributes parameter for indexes
index tag implementation
improved EntityLoader for index and property loading