Some mods for Railo support

Handled some function collisions with Railo functions.
Split out optional functions into individual files to help with selective inclusion.
Replaced some PHP functions still lurking in the code.
Misc other changes.