Added SmartRelativeLayout

Added SmartRelativeLayout per discussion in issue #24