Added ship data class for storing all data regarding ships and parts.

Also added mutex locking to make save formater threadsafe.