Add code related to objects (incomplete)

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