Remove ERB from corelib, and move into seperate gem