Huge commit
- implemented session validation
- improved uncaught exception handling
- implemented api access key
- database transaactions done and finalized the schema


Signed-off-by: Ashwin S <ashwinsadeep@gmail.com>