Log4php

1. Basic Log4php implementation
2. Fix invalid mysql table names in gps.php
3. Code reading improvement