Made ghost run without root privileges even when it was run with sudo.

closes #1638
- added code which changes uid of process after server has been started.