Added boilerplate for time calculation with AOP, expiration,
properties file to read any constants + other refactoring.