Fix 2 instances of CONTENTS_SOLID where we really mean MASK_SOLID.
Refactor lighting code so that dynamic light sources illuminate and cast shadows.