Fully implement dynamic resolving

aid_app[n] will now be resolved to UID/GID [n]+10000, up to a limit set in
libnss-aid.conf. Equally, UID/GID [n] will be resolved to user
aid_app[n - 10000]. 'dynamic-end' in the configuration can set the upper limit
(non-inclusive) for dynamic resolving.