#760 - Fix BaseURL Support
From @jaredledvina
Resolves #649, #732
Related to #130
This PR updates the overall logic around the BASE_URL parameter. I've built Hunter off this branch and am running it. So far, it looks like this will completely restore the BASE_URL support so that it works as intended. See the commits for a break down for each of the bits.
I've locally tested this change with BASE_URL set to huntarr, changing to huntarrtesting, and then to '' and confirmed that in all 3 cases it works and adjusts the base path each time. I also dropped the env variable and confirmed that the DB saved the latest config and used that appropriately.