Simplify soversion by giving nightlies an soversion.

Assign an soversion of "0" to nightly/development builds. This simplifies
the logic for building .rpm and .deb packages. Closes #836.