clean trailing spaces in min.js
move popup dialog generator to tbui.js
add module-level beta mode and dev mode support
add devtools.js module