create a library that can be used by other applications

This brings many changes: The code now uses some C++11 features.
CP850 translation table is added by default. A trivial test is
included.
update debian build files
fix data package