Extracted base spec class. Added application specs. Updated node and ruby test apps.