Revert "Made the profiler working and added environment variable for activation"

This reverts commit 3cd5045e3c5f721c6bd1a57786474cefdf93810d.
Revert "Replaced functionality to get rails 4 working"

This reverts commit 4b82a90a7ca1b6e238b0823475fc1a8cf5c8880d.