Upgrade primus modules and add tern project file