Moved model index loading into its own function. This prevents a bug
when using large apps with bungiesearch calls in multiple modules.
Merge pull request #11 from Sparrho/issue-10

Moved model index loading into its own function.