3DS Exporter

Work in progress.

Currently missing features:
 - Scene hierarchy is not exported
 - Smoothing groups are not generated

This also adds some infrastructure for writing binary files.