Use bsearch in manifest parsing as well.

To optimize package manifest parsing speed it is a good idea to use
binary search for package fields matching. We can perform up to 31
strcmp when using the old scheme. With bsearch we guarantee to have
no more than log2(N) strcmp calls, therefore bsearch is a good choice
in this case.

Sort manifest keys accordingly (can easily be done by sort -k2
command)