Clean up code around invoice template system. Split JS classes to individual files. Use dedicated controller method to each ajax call. Started logic to save invoice templates