clean up dependencies

remove deprecated modules
add test command
remove ejs template engine

reformat code style
convert render to sendFile