Separate libknot into a completely independent library

libknot should be built into a separate library, with headers to be installed in the system (/usr/include/libknot and /usr/include/libknot/internal?)

Prerequisity: #305 (closed)