Make Bresenham's integer line algorithm part of corobot_common.
Move some util functions to corobot_common and tweak some other code.