Add new function strtonum, replace atoi and atol calls with strtonum
and remove srp.c while were at it.