Insertrec and several fixes

- Added getLastRid() method
- Fixed getnextrec
- Implemented insertrec
Write and delete records implementations

- Insert record implementation
- Cleanup of readpage and flushpage
- Other minor cleanup/fixes
Merge branch 'dheeraj' into nithin

Conflicts:
	include/error.h
	include/helpers.h
	physical/createcats.c
	physical/error.c
	physical/openrel.c
Changed *foundRid to **foundRid
Fixed merge error
Corrected the error module to fit to specification

- Added a new global print flag
- Made corresponding changed to all files
Merge branch 'dheeraj' into nithin

Conflicts:
	physical/getnextrec.c
Corrected the error.h
Minor changes to error.h and closerel.c