Review/rebase pull request #36

* Don't split one change into multiple commits ("Removed temporary debugging line" ?? don't add it in the first place)
* Commits named "Added documentation for functions" should not touch any code.

Rebased:

* I didn't review the doc changes itself, but now they should only change comments
* The code to construct the search query is ugly - no one can review that (also contains broken indentation)
* The login redirect.. may be working, ok (fixed indentation)
* There is no rule that says only one PTR is allowed. Some even say you should have a PTR for each A pointing to your IP.