Added a method to get a key or return a default value

... if the key is not found. This is to eliminate some of the
null checks in the code. For beauty's sake more than
anything else.
Formatting
Added two tests for the Properties class

As a sanity check
Removed some of more of the null pointer checks