Initial code commit.
Basic mining and defenses implemented.