Trim old nightlies to specified number of nightlies.

Fixes #81
Add import
Merge pull request #84 from greboid/nightlies

Trim nightlies