Renamed main.php to mataMain.php to avoid name collision with host app

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>
Added a generic form handler for mata module

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>