Adds conversion and output options.

We have added ways to specify type to convert to (conversion options still need to be built) and a way to declare how to export out the file including placeholders for things such as locale etc.

Old behaviour is kept if these aren't specified.