Fixed api random route and added lib/gifs.js

Added api random route and lib/gifs.js to move some logic out of serve.js. Fixed random route to use the new gifs.random function