Figure out base URL instead of hard-coding it. Closes #9.