Fixes 257

Move to new Defines and fixes __DIR__ till we get to php 5.4
Fix up some safety checks to make sure PHP version is greater then the minimum defined.
Leftover files that are not needed in the site.
Fixes #257
Look like we where looping through getstudyDate twice. Now we not change the date in PageBuilder class. Only from listing class.
Adding Safety to installer to check if php version is right.
New Version number.
new docs and zips
Fixes php Version Check on install Script.
Trying fix for errors in media class and popup view.
New Update Version and zip files.
Missing sql file.
Added function in elements to check for valid date format. If valid then process using getStudyDate(). If not, pass through.
Added back getStudyDate() function in pagebuilder class.
Fixed formatting of "if" statements
Merge pull request #261 from tomfuller2/master

Fixes for studydate getStudyDate() function being called twice
New package files
Merge pull request #262 from tomfuller2/master

New package files for 8.0.2
Removed leading / in popup default template and in mediaclass because JURI::base() already provides it. New package files.
Still not working yet but pass the session check.
Merge branch 'master' of https://github.com/Joomla-Bible-Study/Joomla-Bible-Study
Working on the uploader