Use the Piwik API instead of directly accessing the database.

refs #3299
Modify tests/README to render better with markdown
Remove old SVN references and point them to Github
Fix README link to new README on Github
Check for browser archiving in Controller.php

Show text according to browser archiving setting.

fixes #3299
Merge branch 'master' of github.com:piwik/piwik