Added new error types, and a couple tests to ensure the inheritance is up to scratch.
Adapted @chrispitt's PR (https://github.com/infomaniac-amf/js/pull/3) to match naming and OOP style of lib
Merge pull request #5 from infomaniac-amf/exceptions

Exceptions - adapting @chrispitt's PR