Including a new method called _buildQuery()

This method build the url with query params.
Adding .gitignore
Fixing bug when backing two levels in the urls history