unvanquished port to lunar

This is still a beta version.
Please check this properly and provide feedback.

Don't merge for now.