dpatch: rebase engine to python modules

This version breaks the old database using by dpatch
below version 0.7. You can covert old database to new
one by:
   $ cd /var/lib/dpatch/database/
   $ mv sqlite.db sqlite.db.save
   $ cd /usr/share/dpatch
   $ python manage.py syncdb
   $ /sur/share/dpatch/bin/dbconvert.sh

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
cocci: remove useless type from cocci pattern file

Type is not used, so remove it fro pattern file.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
importcocci: rewrite import cocci interface

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
database: update sample sqlite.db

update sqlite.db to new database format, with account
name 'admin' and password '111111'.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
dpatch.spec: add depend of dpatch-core to webui

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>