minor refactoring to app config to use utility functions
moved isStockCountDue to stock-count-factory, moved addObjToCollection and castArrayToObject to utility service.
exposed reminderFactory interval constants.
moved addObjectToCollection from app-config-service to utility
added sorting of stock count by created date.
minor refactorings
updated stock count history to show stock count by date created.
added stock count is due and other necessary functions
minor fix
removed incorrect and unnecessary functions. refactored isStockCountDue to work with base on interval.
changed to group by count date and added count date in history list
added functions that enable stock count reminder to be dependent on interval.
minor fixes so that stock count list can contain date info.
added tests for stock count reminder related functions.
Merge branch 'upstream-develop' into refactor/stock-count-reminder
highlights stock counts that are not editable at history list.
Merge branch 'upstream-develop' into refactor/stock-count-reminder

Conflicts:
	app/scripts/controllers/app-config.js
	app/scripts/services/utility.js
minor fix to stock count reminder
added sorting of stock count history by count date.
Merge branch 'upstream-develop' into refactor/stock-count-reminder