added categoriesContainer
factories return promices insted of callback function
fixed nested loops , removed unnececary blocks identation fix
identation fix
merge with master
added categories container