file refactor and some fixes

tag system is fixed (hack-job string compare created a weird bug)
redundant files were removed/reformatted
security enhancement (system and view files cannot be accessed from
outside the panel login else a 403 is returned)