Url-encode params properly
Move macros to vim.hrl and format for legibility