Railo compatibility fixes and more new features

Added several railo strict scope compatibility fixes and also added capabilities for
afterTests() and beforeTests().