fix option parsing

parse options in global context, so $# and $1, $@ continue to work
also not all options had "shift" to get $1
add -b to set paste server url