Merge pull request #3 from JasonMWhite/master

DRY, move logic to lib, persist nn data if needed
Update .gitignore, include nn performance test
Fix NN integration tests
Rebasing