new Pull request

Hey,

complete rewrite of index.php
created generic functions,
added functions.php
added jqery/datatable,