Move exceptions to a sub-package

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
Fix license headers

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>