add CUPIDON_ prefix to core constants
add contextual parameters injection
fix template recursive issues
fix performance issues