Add basic ajax call into optimize button call.

Maybe add a popup "new remaps" ?
Add optimize remaps.

so looooooooong (depends on skillplan)... need further investigations to
find a way to really improve this timer... threads maybe?