More stuffs

Added repair table, ghost items, achievements (first two), config
options, and a few event-based mechanics.