Adding support for AppCache.

Restoring a well-defined order of the files to be concatenated in the
Gruntfile, since a simple lexicographical order might let classes be
defined after their first use.