This is Matias pull for AJAX loading files

#Please do not merge this pull, this is work in progress

@fastslack I'm creating this pull so we can discuss it here and improve it before we can merge it.