huge refactoring to improve code quality and flexibility
fixed storage service bug
added test to test that storageService.insertBatch throws exception when called with non-array second parameter
huge refactoring to improve code quality, updated tests, used reminder factory for stock count reminder.
Merge pull request #310 from jofomah/feature/updated-reminder-factory-and-integrate

Feature/updated reminder factory and integrate
Merge branch 'upstream-develop' into fix/replaced-dtp-with-penta-removed-bcg-10

Conflicts:
	app/scripts/services/inventoryrulesfactory.js