cli: Fix shrink option which was expecting a value
Add the latest packer library from base2 project

Files taken from revision 310 of the following SVN url:

  http://base2.googlecode.com/svn/trunk/lib/src
Use the new packer library
Do not append an extra newline to packed data