update dev code/setup dev site

update code -make sure it is the most recent from live site;
Make changes to code which allows the system to work on subdirectories
including new constant DOCUMENT_ROOT (referenced in function in Main
class), changes to root htaccess (which was also removed)