OS X and Linux port

Rewrote start-idle. Since the main script is in Python, I used Python there too. The Windows version can continue to use the C# program.
Tried to keep the modifications to start.py as small as possible. In the second commit I explained the changes there.