Remove all Rails stuff and replace with very small wrapper around core library