add init_app factory method
Merge branch 'logscan'

Conflicts:
	cuttlefish/lib/cmdb.py
	cuttlefish/static/js/cmdb-device.js
	cuttlefish/templates/cmdb/device.html
	cuttlefish/views/cmdb.py