cleanup external/ in nupic

reuse files in nupic.core for external