Add study and cast commands.

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