Misc fixes

-- Use jquery-rails gem since they are better about bundling latest now
-- Fix refinery configuration substitutions
-- Fix foundation css include (their generator changed in a recent version)
Only install custom devise views if installed
Put jquery-rails into assets gem group