Fixes issue #346.

In smart manager sink, django orm is used to write to sqlite3 in
autocommit(default) which causes database locking issues when there's a
constant stream of updates in the sink. Use commit_on_success and batch writes
to mitigate this issue.
Dashboard widget query modifications

Change t1 to be the timestamp of the last data point from the previous
dataset, instead of previous t2
Remove commented code
Merge pull request #352 from schakrava/issue#346_database_locked

Fixes  #346.
Update t1 from data only if data is not empty
CPU Widget data updates

Update current dataset independently of graph.
Update current window independent of dataset
Create a base buildout with the common parts for all environments.
Merge branch 'issue#356_no_data_widget' of git://github.com/sujeetsr/rockstor-core into sujeetsr-issue#356_no_data_widget
Change journal mode to WAL in db templates
Turn on wal for datastore also.
Widgets data and time interval changes

Maintain current data set independent of rendering logic
Handle empty dataset
Merge branch 'issue#356_no_data_widget' of github.com:sujeetsr/rockstor-core into issue#356_no_data_widget

Conflicts:
	buildout.cfg
Remove console.log
Added new md5sum and removed duplicate section for js-libraries
Simplify model save from the sink since wal decouples reads and writes completely.
Merge branch 'issue#356_no_data_widget' of git://github.com/sujeetsr/rockstor-core into sujeetsr-issue#356_no_data_widget

Conflicts:
	buildout.cfg
Update md5 sum for js-libs in prod buildout
Merge branch 'master' into issue#348_2.0_smart_probes
bugfix: remove init-gunicorn from base as it's different for dev and proc