Added option to select redirect type (301/302)

Quick implementation of redirect types/methods.

Also added an index to oldUrl to improve lookup speeds