Beta 0.9.9

Many under-the-hood improvements and bugfixes