fixes #875
#462

changed all PHP_SELF refs to use custom function and script name.
removed form actions , uneeded
update requirements