added api/v1 controllers; added normal vector support; refactored analytics layout and behavior