Move STATS handler into core
Move VERSION command into core
License headers added