Add checksums for manifests, fixed several bugs with memory corruption, add -F option to pkg-install.

Add sha256 checksums for manifests generated. Document this change
in doxygen style comment. Generate digest file for repository in
format:
<origin>: <sha256>\n
...

Fix memory corruption during getting package files list by setting
'file' variable to NULL as it is intended.