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

... css

 - [x] Ready to be merged

Fix for #1360