doc: fix file encoding
fix layouts
global: remove NR.__HOST object, and santitize all related files
dom/event: remote an unnecessary and empty function
switch: rename all switch plugins to lowercased name; `switch/core` will ignore uppercase names