optimize on file size

load d3.js after login, also merge js/css lib files.