Refactor lastUrlPart into seperate method
Fix memory/routine leak
Adjust tests to new behavior
Added linux amd64 binary