license: Changes in licensing and re-factoring

Signed-off-by: Harshavardhana <harsha@harshavardhana.net>