Added countFactors function.

Added local refs to Math.ceil and Math.sqrt to assist minifier.
Renamed getPrimeFactorsOf to getPrimeFactors.
Renamed getAllFactorsOf to getAllFactors
Updated karma tests
Regenerated minified production file
Added info() function, to observe internal state