apl_crypt: Additional error-checking
Makefile: Add val-sanity target

Runs sanity tests under Valgrind's Memcheck tool
Merge branch 'crypt'