Rafactor code and add basic aggregation functionality

The code has been refactored extensively. Javascript has been attached to DOM elements unobtrusively. Functions have been organised properly and variable names have been made more meaningful. A basic aggregation type has been added to start thinking about aggregation functionality.
Merge branch 'master' of https://github.com/apeeyush/Data-Analytics-Log-Manager