karma config to separate file

A couple of things i read/watched suggested it as a best practice. I also fixed the files def to load necessary libs and exclude redundant requires which were causing errors when running 'grunt test'