resolve data before showing the page

took from http://blog.octo.com/retour-dexperience-5-idees-pour-ameliorer-les-performances-dune-application-web-angularjs/
Merge branch 'resolve' into gh-pages