Loan origination fees are points. You can deduct the points in full in the year they are paid, if all the following requirements are met:
That is, if you did not pay (at or before closing) at least as much as the loan origination fee you will not be able to deduct the loan origination fee in one year but can deduct it ratable over the life of the loan (for example if it was a no down payment purchase).
Points not included in Form 1098 should be entered on line 12 of Form 1040, Schedule A , Itemized Deductions. For more information, refer to Publication 936, Home Mortgage Interest Deduction; and Tax Topic 504, Home Mortgage Points.
The other items you listed from the HUD-1 are all costs of buying the property. When you figure your gain on the sale of the house you include your purchase price add the costs of buying the property. That is, if your contract price was 100,000 but you had closing costs of 5,000 (that you did not deduct on Schedule A) when you sold that house for 200,000 you would have only 95,000 of gain. That is what is meant by the costs being figured in when you sell the home.
I hope this helps for deducting points and using the closing costs as part of your cost of the property.