NEXUS-5993: NPE check and javadoc clarified about parent creation
NEXUS-5993: is unused, as writeFile creates parents if needed
NEXUS-5993: Using guava rather own grown stuff
NEXUS-5993: Made persisting symmetric

To not rely on encoding and stuff implicitly
NEXUS-5993: Removed unused methods.