Url export rake task and some console script cleanup