started adding API reference documentation to the code; implementing oauth module

Signed-off-by: naazgull <pedro.figueiredo@gmail.com>