Implements support for goapp and goevent
clean support for goevent and goapp
make the database connection configurable