Build system improvements

Improve setup.py
Add support for setup.py test
Restructure the examples/ directory
Move settings, urls, manage and other files to a tests/ directory