Reorganized source code tree (modernizing and gemifying it).