Encoding files in base64

This works regardless of the file type (be it plain text or some weird
binary format)
Extracted the whole base64 gibberish in a new method
Extracted the reading part into a method
Added a method to deal with text files
Treating text files differently
Writing only the number of bytes I read

This prevents me from adding a bunch of zero's at the end
of the file
Moved the knownTextFiles field to the COPE plugin

I will need it later in the replayer
Moved the calling of the init files in the COPEPlugin

It should initialize it's internals, not somebody else
Restricted the init methods
Added a safeguard against a NullPointerException
Safeguarding against the error
Merge pull request #118 from caiusb/stop-bug

Stop bug
Merge pull request #119 from caiusb/snapshopt-bug-2

Snapshot during update bug
Merge pull request #116 from caiusb/binary-files

Sanely recording Binary files