APY-8 : Implement X-Filter as external server

Moved all sql alchemy stuff to support plugin.