EmberAPI\clsAPIDatabase documented

Added extensive method documentation. Also added fair amount of
parameter type checking to increase robustness and error tracking
capabilities.