Fix BO create_lot (DateTime generated an fatal error + Fix layout to load only mandatory css or js files + misc. minor fixes