Support specifying paths starting with ~/ for layout and partial views

Fixes #821
Should probably be only dropping 1 character, that means that it's no longer a relative path though hah.