Bug fix in cache

Also Changed licence to Apache 2.0 and updated Ajax Min
v1.4.0

Changed licence to Apache 2.0
Updated Ajax.Min
Fixed bug caused by updated dotless.
Fixed rare caching bug for remote files.