Export of autogenerated systems to lua + Tidal locking

I tried to solve issue #1565 by this commit. Soon, I found out, that the task is not that easy, since a lot of the information to be exported is was simply not available. The other problem was, that custom systems couldn't properly use binary stars and systems with more stars, which required few changes.  

The export method itself, <code>StarSystem::ExportToLua()</code>, is written in C++ (I know, Lua would be probably better...) and dumps the files to fixed path. The fixed path dump will have to be changed - this is more first version for discussion that finished work. But it will probably require some testing from other people. The exported systems are <a href=http://irigi.matfyz.cz/pioneer/systems>here</a>. They can be used with this branch, or with "minimal changes" branch #1701.

This issue also contains tidal-locking code previously submitted in #1695, since it required some of the corrections performed here.