Rewrite setup script by Python

Python is a great language :+1: 

This branch contains the change around testing method.
Now, skelton tests the code with tomcat.