Add actual conversion to plugin
Big commit: lots of HFA-specific optimizations