Reorganize file and apply license while opening each files

The theme config file has been changed accordingly. The ajax files have
been moved to an ajax plugin.