Continue atoi() replacement with strtol() wrapper, closes issue #21

This commit completes the conversion to the strtol() wrapper function in order
to remove all atoi() calls.  In addition, variable max values are enforced
using more broadly defined RCHK_* values.