ios port: fix path for main bundle and document directory (config and save state now saved), removed unused sources.