Some bugfixes for sensor/data code + add FCGI_INT_T

Note: PrintByTime/Points have exclusive ends now.
Merge pull request #33 from jtanx/master

Some bugfixes for sensor/data code + add FCGI_INT_T