Refactor export into class.

Also added support for meshmagick optimization, and improved tool
location on *nix systems.
Handle skeletons and linked armatures in export.
Removed unused code.