update to new leveldb
move app-specific plugin code
refactor for better server-side plugin management
move require calls inside init code