Merge code from private development repository

This contains all Lunacy code under an Apache 2.0 license, plus
third-party libraries.