Add link_to_previous_page helper for sinatra

I found that link_to_previous_page isn't provided for sinatra.
I implemented it.