don't use datetime type in javascript

datetime was added recently, but ext only has date (which includes time)
use correct variable
refactor code: split Components and ComponentsAdmin into two if clauses
fix tests: add missing dependencies
add missing parameter from previous refactoring
Merge remote-tracking branch 'github/master'
fix test
add partials type that is now required as we can now cache partials