refactor(architecture): move files.js from lib to misc