Added occupancy / mask generation for magic moves

Rearranged some other stuff too… Some sloppiness exists as placeholders
for future functions. Added debruijn multipliers for a reasonably fast
forward bitscan.