Move API filtering to PHP
Ver 0.5
Merge branch 'dev'