Use native Magento indexer functionality for Algolia search.
Merge branch 'improvement' of https://github.com/sergeykalenyuk/algoliasearch-magento into sergeykalenyuk-improvement

Conflicts:
	code/Helper/Data.php
Merge branch 'sergeykalenyuk-improvement'
Fixed Data.php merge
Add path filter to categories collection to prevent loading categories from other root categories.
Delete index if entire should be cleared.
Double check category name before adding to the list of product categories.
Increase minimum word size for 1 and 2 typos. Default 3 and 7 are too small.
Fix category product count.
Increase minimum word size for 1 and 2 typos to 5 and 10 respectively.
Merge pull request #24 from sergeykalenyuk/improvement

Improvement
Add replacement for the buggy Magento native  environment emulation.
Reappear the pop-up with the last results when the search input field is focused.
Change config to have only one input for number of suggestions after combining products and categories queries into a single query.
When there is no results for products/categories use same styling but list of products/categories replace with "No results.".
- Add "Algolia Search" > "Configuration" > "Settings" > "Category Additional Attributes" configuration.
- Use category additional attributes for an index settings and while preparing category data.
Merge pull request #25 from sergeykalenyuk/improvement

Improvement
Reindex category after changing category additional attributes.
Merge pull request #26 from sergeykalenyuk/improvement

Reindex category after changing category additional attributes.
Add data prefix to retrieve Algolia search specific data for the entity.
Index arrays instead of converting them into strings with separator.
Merge pull request #27 from sergeykalenyuk/improvement

Minor improvements
Dispatch events before indexing products and categories.