Adding extensions to .gitignore
Including support to exceptions

Initial support to exceptions is now available. There are still some
header files to be adjusted (removing asserts and replacing them with
proper exceptions), but this should give a basis to other parts of the
project that require adequate handling of errors.