API updates, add 'resolve' api method for turning short urls back into the long one using json requests