expand ~ in paths to the users home directory

If the site uri starts with ~/ then expand it to the users home
directory.  ~user style paths aren't implemented as part of this change.