Added loading/storing of PreparedInput

PreparedInput obects can now be stored to and read from a file,
producing the AIDA format also used in our experimental datasets.
Fixed some bugs.

InlinkCountImportance and EntityImportance is working now.