Moved internal attributes and relationships array to object constructor (class vars)

Previous implementation involving placing of said arrays in object prototype and using slice() was inefficient because the code repeatedly initialized a new array each time an attribute or a relationship is defined.

Also added Model.getAttributes() and Model.getRelationships() methods.