Updated ServiceStack to make Min & Max Threads a configurable option, added MongoDB database provider, and fixed Random number determination.

This is a recommit of #418, as my fork became stale and my merges against the origin started to show up.  I have separated the commits into smaller pieces.

1. Min & Max thread configuration.
2. Fixed random number determination.
3. MongoDB database support.