WIP: Only install stable releases by default

This implements #820.

* Adds the --pre flag to pip install to specify that you wish to install pre-releases
* If the version spec contains any pre-releases then continue to install pre-releases