Add calcs.c and autoinscription code.

Signed-off-by: nppangband <nppangbanddev@verizon.net>