add eltype, last, and pop! for IntSet
a few other intset-related fixes and doc updates
add some IntSet tests
fix smallint -> BigInt conversions, especially BigInt(Int128)
fix #3032, bug in immutable constructor with too few args
factor: don't generate as many primes when doing trial division.
primes: implement and test prime stuff for BigInts [closes #3033]

It is not recommended to use this code to factor large integers. The
primality testing for BigInts calls GMP, so should be pretty good.
test/Makefile: allow mpfr to be tested in isolation.
factor: precompute and use a list of small primes as before.
pkg2 wip: refactor using fixed() instead of installed().

It stands to reason that we don't actually care about what is not
fixed when we're figuring out what should be installed.
Fix mpz_probab_prime_p call

The number of tests to use wasn't there. I'm using 25, as it is
the recommended amount, but now it is also available as an extra
argument.
Add tests to isprime(::BigInt)
Merge pull request #3038 from andrioni/master

Fix mpz_probab_prime_p call
add isqrt (integer sqrt), use it to improve factor() (#3035)
export primes
Merge branch 'master' of github.com:JuliaLang/julia
add powermod for BigInt
Merge remote-tracking branch 'upstream/master'