Require only the rails libs which are needed