#1360 Added tern task for grunt and tern main file in addons, fixed some...

... css

Fix for #1360