If you go here and click on "Constable's Notes" on the right pane and scroll down to the section that covers James 5:14-16 (under the sub " 2. The Prescription For Help") you will find some interesting background to what James was talking about.
Additional Jewish background to the practice of "anointing with oil" can be found here, although some of these references are dated a bit.