LDA: Test cases for new LDA code including perplexity measure

Other changes:
    - Fixed problems in loadingManager where built-ins were overridden
    - Corrected .gitignore to ignore analysticstool and testconfig