Move object dialog class to its own file

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