Scope functions to NuregoUtils class
Move p variable to scope Nurego
Clean up keys, fix event handlers for simple_3_tier theme