Code cleanup for scripted items and effects

Moved some code around, broke code for actually creating scripted effect
into its own method instead of the constructor.
Moved utility binding code up

Also reformatted it to be more like the other code blocks.
Merge pull request #26 from zackthehuman/master

Scripting code cleanup (minor)