Remove rails dependencies

This is a few fixes for use chartkick without Rails