Restructure application so that it can be easily executed

Based on:
        http://flask.pocoo.org/docs/0.10/patterns/packages/

New structure improves modularity and simplifies application
startup.
Parametrize Makefile
Don't repeat metric name if label was not found